﻿using System.ComponentModel.DataAnnotations;

namespace Vaccination.API.Models
{
    /// <summary>
    /// 新增疫苗接种输入模型
    /// </summary>
    public class CreateVaccinationInfoInput
    {
        /// <summary>
        /// 疫苗Id
        /// </summary>
        [Required(ErrorMessage = "疫苗名称为必填")]
        public Guid VaccineId { get; set; }

        /// <summary>
        /// 疫苗名称
        /// </summary>
        [Required(ErrorMessage = "疫苗名称为必填")]
        [MaxLength(32)]
        public string? VaccineName { get; set; }

        /// <summary>
        /// 预约接种用户Id
        /// </summary>
        [Required(ErrorMessage = "预约接种用户Id为必填")]
        public Guid UserId { get; set; }

        /// <summary>
        /// 预约接种用户名
        /// </summary>
        [Required(ErrorMessage = "疫苗名称为必填")]
        public string? UserName { get; set; }

        /// <summary>
        /// 预约接种时间
        /// </summary>
        public DateTime BookedTime { get; set; }
    }
}
